package com.dyna.foundation.domain.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("菜单分页列表")
public class SysMenuPageResp {

    private Long menuId;

    @ApiModelProperty("父菜单ID，一级菜单为0")
    private Long parentId;

    @ApiModelProperty("菜单名称")
    private String name;


    @ApiModelProperty("菜单URL")
    private String url;


    @ApiModelProperty("授权(多个用逗号分隔，如：user:list，user:create)")
    private String perms;


    @ApiModelProperty("类型  0：目录  1：菜单  2：按钮")
    private Integer type;


    @ApiModelProperty("菜单图标")
    private String icon;


    @ApiModelProperty("排序")
    private Integer orderNum;

    @ApiModelProperty("子菜单")
    private List<SysMenuPageResp> children;

}
